package com.atguigu.gulimall.common.constant;

/**
 * @program: gulimall
 * @author: yangshen
 * @description:
 * @create: 2020-07-03 16:09
 **/
public class ProductConstant {

    public enum AttrEnum {
        /**
         * 属性的分类：基本属性
         */
        ATTR_TYPE_BASE(1, "基本属性"),
        /**
         * 属性的分类：规格参数
         */
        ATTR_TYPE_SALE(0, "规格参数");

        /**
         * 编码
         */
        private int code;
        /**
         * 名词解释
         */
        private String msg;

        AttrEnum(int code, String msg){
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
